package com.example.nutritionmanager.api

import com.example.nutritionmanager.bodys.responseBodys.OCRResult
import okhttp3.MultipartBody
import retrofit2.Response
import retrofit2.http.GET
import retrofit2.http.Multipart
import retrofit2.http.POST
import retrofit2.http.Part

interface ResultService {
    @GET("result/test")
    suspend fun getResult(): Response<OCRResult>

    @Multipart
    @POST("api/recognize/nutrition-table")
    suspend fun recognizeNutritionTable(
        @Part file: MultipartBody.Part
    ): Response<OCRResult>
}